package com.wx.generic.intface;


import org.junit.Assert;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * 泛型接口
 *
 * @author wang.xun
 * @date 2022/12/23
 */
public class GenericInterFace {
    @Test
    public void TestFather(){
        Father<Integer> integerSon = new Son<>(123);
        Assert.assertTrue(integerSon.getName() == 123);
        Assert.assertTrue(String.class.isInstance(integerSon.getName()));



    }
}
